package com.hxzy.shop.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 药品详情图表
 */
@Data
@ApiModel("药品详情图表")
public class DrugDetails implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 药品详情图id
     */
    @TableId
    @ApiModelProperty("药品详情图id")
    private Long id;

    /**
     * 药品id
     */
    @ApiModelProperty("药品id")
    private Long drugId;

    /**
     * 药品url
     */
    @ApiModelProperty("药品url")
    private String url;

    /**
     * 排序
     */
    @ApiModelProperty("排序")
    private Integer sort;

    /**
     * 商户id
     */
    @ApiModelProperty("商户id")
    private Long merchantId;

    public DrugDetails() {
    }

    public DrugDetails(Long drugId, String url, Integer sort) {
        this.drugId = drugId;
        this.url = url;
        this.sort = sort;
    }
}
